package com.xyulu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyulu.dao.BlogCategoryDao;
import com.xyulu.entity.BlogCategoryEntity;
import com.xyulu.service.BlogCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lumin
 * @since 2021-02-25
 */
@Service
public class BlogCategoryServiceImpl extends ServiceImpl<BlogCategoryDao, BlogCategoryEntity> implements BlogCategoryService {

    @Override
    public List<BlogCategoryEntity> getCategory() {
        return baseMapper.getCategory();
    }

    @Override
    public void addAticleCount(Integer categoryId) {
        baseMapper.addAticleCount(categoryId);
    }
}
